<template>
  <div>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :page-size="100"
      layout="prev, pager, next, jumper"
      :total="total"
    ></el-pagination>
  </div>
</template>

<script>
export default {
  // 组件名称
  name: "demo", // 组件参数 接收来自父组件的数据
  props: ["total"],
  components: {},
  data() {
    return {};
  },

  methods: {
    handleSizeChange(val) {
      //   console.log(val);
      this.$emit("changeSize", val);
    },
    handleCurrentChange(val) {
      //console.log(val);
      this.$emit("changeNum", val);
    },
  },
};
</script>
<style scoped></style>
